package com.powernode.service;

import com.github.pagehelper.Page;
import com.powernode.domain.Customer;
import com.powernode.dto.CustomerDto;

public interface CustomerService{


    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     *客户的分页查询
     * @param customerDto
     * @return
     */
    Page<Customer> queryForPage(CustomerDto customerDto);


    /**
     * 修改客户所属的业务员
     * @param userId
     * @param customerIds
     */
    void changeCustomerUser(Integer userId, Integer[] customerIds);

    // taojie使用git进行的拉取更新代码到本地的操作

    //taojie 使用git进行上传代码到远程仓库的操作2

}
